package cn.webrx;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class List4 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>(List.of(1,1,1,2,2,3,3,3,3,5));
        System.out.println(list);
        Set<Integer> set = new HashSet<>(list);
        System.out.println(set);
    }
}
